﻿

using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Clients;
/// <summary>
/// 客户端连接命令
/// </summary>
[ProtoContract]
public class ClientConnectCommand:IClientCommand
{

    /// <summary>
    /// 启动路径;程序部署路径
    /// </summary>
    [ProtoMember(1)]
    public string RunPath { get; set; }
    /// <summary>
    /// 程序类型 0 其它客户端  1 采集客户端  2 数据服务端 3 web客户端
    /// </summary>
    [ProtoMember(2)]
    public int ProgramType { get; set; }

    /// <summary>
    /// IP端口地址;程序的IP端口
    /// </summary>
    [ProtoMember(3)]
    public string IPAddress { get; set; }
    [ProtoMember(4)]
    public string Id { get; set; }=Guid.NewGuid().ToString();
}
